-- GENERATED SPELL FOR [Citadel Watcher] --


function spell0_31787(pUnit, Event) --@Gargoyle Strike,n/a--
pUnit:FullCastSpellOnTarget(16564,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31787', 1500, 1)
end

function Sorts_31787(pUnit, Event)
local choix_sorts_31787 = math.random(0, 0)
if choix_sorts_31787 == 0 then
pUnit:RegisterEvent('spell0_31787', 1, 1)
end
end

function mob31787_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_31787', math.random(1500, 3000), 1)
end

function mob31787_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31787_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31787_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(31787, 1, 'mob31787_Action')
RegisterUnitEvent(31787, 2, 'mob31787_Leave')
RegisterUnitEvent(31787, 3, 'mob31787_Kill')
RegisterUnitEvent(31787, 4, 'mob31787_Die')
